import request from "@/utils/request";

//肉猪列表
export function pigList(data) {
  return request({
    url: "/produce/pig/list",
    method: "post",
    data,
  });
}

//进场 
export function pigEntry(data) {
  return request({
    url: '/produce/pig/pigEntry',
    method: 'post',
    data
  })
}

//转舍
export function pigMoveBuildings(data) {
  return request({
    url: '/produce/pig/pigMoveBuildings',
    method: 'post',
    data
  })
}

//离场
export function pigLeave(data) {
  return request({
    url: '/produce/pig/pigLeave',
    method: 'post',
    data
  })
}

//删除 
export function pigDelete(id) {
  return request({
    url: `/produce/pig/pigDelete/${id}`,
    method:"delete"
  })
}